   var url = location.search; //获取url中"?"符后的字串
   if (url.indexOf("?") != -1) {
       var str = url.substr(1);
   }
   //    $('.mobileNo').html(getdata.MobileNo);
   $('.identityNo').html(theRequest.IdentityNo);
   $('.user-right').html('李四');
   var GlucoseLength = 0;
   var HeartRateLength = 0;
   var TemperatureLength = 0;
   var OxygenLength = 0;
   var PulseLength = 0;
   var LeftSystolicLength = 0;
   var LeftDiastolicLength = 0;
   var RightSystolicLength = 0;
   var RightDiastolicLength = 0;

   $.ajax({
       url: `${Url}/Wechat/Api/ExamModel?${str}`,
       type: 'get',
       datatype: 'json',
       headers: {
           'Authorization': Authorization
       },
       // data: responseData,
       async: false,
       success: function(res) {


           if (res.data.ExamItems.length > 0) {
               $('.examModel').css('display', 'blonk');
               $('.erro').css('display', 'blonk');
               for (const key in res.data.ExamItems) {
                   //显示体温
                   if (res.data.ExamItems[key].Temperature) {
                       if (res.data.ExamItems[key].Temperature.Temperature >= 35.8 && res.data.ExamItems[key].Temperature.Temperature <= 37.8) {
                           $('.examModel .Temperature').html(res.data.ExamItems[key].Temperature.Temperature);
                           $('.erro .Temperature').parent('tr').css('display', 'none');
                           TemperatureLength = 0;
                       } else {
                           $('.erro .Temperature').html(res.data.ExamItems[key].Temperature.Temperature);
                           $('.examModel .Temperature').parent('tr').css('display', 'none');
                           TemperatureLength = 1;
                       }

                       if (res.data.ExamItems[key].Temperature.Temperature >= 35.8 && res.data.ExamItems[key].Temperature.Temperature <= 37.8) {
                           $('.examModel .temperature').css('display', 'block');
                           $('.erro .temperature').css('display', 'none');
                       } else {
                           $('.erro .temperature').css('display', 'block');
                           $('.examModel .temperature').css('display', 'none');
                       }
                       $('.temperature .CheckDate').html(res.data.ExamItems[key].Temperature.CheckDate);
                       $('.Temperature').html(res.data.ExamItems[key].Temperature.Temperature);
                       //    return
                   } else {
                       //    $('.temperature').css('display', 'none');
                   }
               }
               $('.user-right').html(res.data.FullName);
               res.data.ExamItems.forEach(element => {
                   //显示血氧
                   if (element.OxygenLevel) {
                       $('.oxygenLevel').css('display', 'block')
                       if (element.OxygenLevel.Pulse >= 60 && element.OxygenLevel.Pulse <= 100) {
                           $('.examModel .pulse').html(element.OxygenLevel.Pulse);
                           $('.erro .pulse').parent('tr').css('display', 'none');
                           PulseLength = 0;
                       } else {
                           $('.erro .pulse').html(element.OxygenLevel.Pulse);
                           $('.examModel .pulse').parent('tr').css('display', 'none');
                           PulseLength = 1;
                       }
                       if (element.OxygenLevel.Oxygen >= 97 && element.OxygenLevel.Oxygen <= 100) {
                           $('.examModel .oxygen').html(element.OxygenLevel.Oxygen);
                           $('.erro .oxygen').parent('tr').css('display', 'none');
                           OxygenLength = 0;
                       } else {
                           $('.erro .oxygen').html(element.OxygenLevel.Oxygen);
                           $('.examModel .oxygen').parent('tr').css('display', 'none');
                           OxygenLength = 1;
                       }

                       if (element.OxygenLevel.Oxygen >= 97 && element.OxygenLevel.Oxygen <= 100 && element.OxygenLevel.Pulse >= 60 && element.OxygenLevel.Pulse <= 100) {
                           $('.examModel .oxygenLevel').css('display', 'block');
                           $('.erro .oxygenLevel').css('display', 'none');
                       } else {
                           $('.erro .oxygenLevel').css('display', 'block');
                           $('.examModel .oxygenLevel').css('display', 'none');
                       }
                       $('.oxygenLevel .CheckDate').html(element.OxygenLevel.CheckDate);
                       $('.oxygen').html(element.OxygenLevel.Oxygen);
                   } else {
                       $('.oxygenLevel').css('display', 'none')
                   };
                   //显示血糖
                   if (element.BloodGlucose) {
                       $('.bloodGlucose').css('display', 'block');
                       if (element.BloodGlucose.Glucose >= 3.61 && element.BloodGlucose.Glucose <= 6.11) {
                           $('.examModel .glucose').html(element.BloodGlucose.Glucose);
                           $('.erro .bloodGlucose').css('display', 'none');
                           GlucoseLength = 0;
                       } else {
                           $('.erro .glucose').html(element.BloodGlucose.Glucose);
                           $('.examModel .bloodGlucose').css('display', 'none');
                           GlucoseLength = 1;
                       }

                       if (element.BloodGlucose.Glucose >= 3.61 && element.BloodGlucose.Glucose <= 6.11) {
                           $('.examModel .bloodGlucose').css('display', 'block');
                           $('.erro .bloodGlucose').css('display', 'none');

                       } else {
                           $('.erro .bloodGlucose').css('display', 'block');
                           $('.examModel .bloodGlucose').css('display', 'none');

                       }
                       $('.bloodGlucose .CheckDate').html(element.BloodGlucose.CheckDate);
                   } else {
                       $('.bloodGlucose').css('display', 'none');
                   };
                   //显示血压
                   if (element.NewBP) {
                       $('.newBp').css('display', 'block')
                       if (element.NewBP.PulseRate >= 60 && element.NewBP.PulseRate <= 100) {
                           $('.examModel .pulseRate').html(element.NewBP.PulseRate);
                           $('.erro .pulseRate').parent('tr').css('display', 'none');

                       } else {
                           $('.erro .pulseRate').html(element.NewBP.PulseRate);
                           $('.examModel .pulseRate').parent('tr').css('display', 'none')
                       }


                       if (element.NewBP.LeftSystolic >= 90 && element.NewBP.LeftSystolic <= 140) {
                           $('.examModel .leftSystolic').html(element.NewBP.LeftSystolic);
                           $('.erro .leftSystolic').parent('tr').css('display', 'none');
                           LeftSystolicLength = 0;
                       } else {
                           $('.erro .leftSystolic').html(element.NewBP.LeftSystolic);
                           $('.examModel .leftSystolic').parent('tr').css('display', 'none');
                           LeftSystolicLength = 1;
                       }


                       if (element.NewBP.RightSystolic >= 90 && element.NewBP.RightSystolic <= 140) {
                           $('.examModel .rightSystolic').html(element.NewBP.RightSystolic);
                           $('.erro .rightSystolic').parent('tr').css('display', 'none');
                           RightSystolicLength = 0;
                       } else {
                           $('.erro .rightSystolic').html(element.NewBP.RightSystolic);
                           $('.examModel .rightSystolic').parent('tr').css('display', 'none');
                           RightSystolicLength = 1;
                       }


                       if (element.NewBP.LeftDiastolic >= 60 && element.NewBP.LeftDiastolic <= 90) {
                           $('.examModel .leftDiastolic').html(element.NewBP.LeftDiastolic);
                           $('.erro .leftDiastolic').parent('tr').css('display', 'none');
                           LeftDiastolicLength = 0;
                       } else {
                           $('.erro .leftDiastolic').html(element.NewBP.LeftDiastolic);
                           $('.examModel .leftDiastolic').parent('tr').css('display', 'none');
                           LeftDiastolicLength = 1;
                       }


                       if (element.NewBP.RightDiastolic >= 60 && element.NewBP.RightDiastolic <= 90) {
                           $('.examModel .rightDiastolic').html(element.NewBP.RightDiastolic);
                           $('.erro .rightDiastolic').parent('tr').css('display', 'none');
                           RightDiastolicLength = 0;
                       } else {
                           $('.erro .rightDiastolic').html(element.NewBP.RightDiastolic);
                           $('.examModel .rightDiastolic').parent('tr').css('display', 'none');
                           RightDiastolicLength = 1;
                       }

                       if (element.NewBP.LeftSystolic >= 90 && element.NewBP.LeftSystolic <= 140 && element.NewBP.RightSystolic >= 90 && element.NewBP.RightSystolic <= 140 && element.NewBP.LeftDiastolic >= 60 && element.NewBP.LeftDiastolic <= 90 && element.NewBP.RightDiastolic >= 60 && element.NewBP.RightDiastolic <= 90) {
                           $('.examModel .newBp').css('display', 'block');
                           $('.erro .newBp').css('display', 'none');
                       } else {
                           $('.erro .newBp').css('display', 'block');
                           $('.examModel .newBp').css('display', 'none');
                       }
                       $('.newBp .CheckDate').html(element.NewBP.CheckDate);

                       $('.user-right').html(res.data.FullName)
                   } else {
                       $('.newBp').css('display', 'none')
                   };
                   //显示心电
                   if (element.NewBP) {
                       $('.ecg').css('display', 'block')
                   } else {
                       $('.ecg').css('display', 'none')
                   };

               });
           } else {
               $('.examModel').css('display', 'none');
               $('.erro').css('display', 'none');
           }


       }



   });
   var result = HeartRateLength + TemperatureLength + GlucoseLength + OxygenLength + PulseLength + LeftSystolicLength + LeftDiastolicLength + RightSystolicLength + RightDiastolicLength;
   $('ul li span').html(result)
       //tab按钮
   $('ul li').click(function() {
       if ($(this).index() == 0) {
           $('.erro').css('display', 'none');
           $('.examModel').css('display', 'block');
           $(this).next().removeClass('color');
           $(this).addClass('color');

       } else {
           $('.erro').css('display', 'block');
           $('.examModel').css('display', 'none');
           $(this).prev().removeClass('color');
           $(this).addClass('color');

       }
   })